package com.aaa.vo;

import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

//参数对应类
@Data
public class LoginVO implements Serializable {

    //入参校验
    @NotBlank(message = "必须有账号")
    @Length(min = 3,max = 9, message = "账号长度应该是3-9位")
    private String username;
    @NotBlank(message = "必须有密码")
    @Length(min = 3,max = 9, message = "密码长度应该是3-9位")
    private String password;
}
